##
## Makefile for  in /home/georgi_v/PSU_2013_minishell1
## 
## Made by georgi_v
## Login   <georgi_v@epitech.net>
## 
## Started on  Wed Nov  6 15:23:42 2013 georgi_v
## Last update Mon Dec  9 17:35:46 2013 yang jie
##

NAME	 = AsmX

RM	 = rm -rf

INC	 = -I./include/
L_PATH	 = -L./libs/

ASMLIBS  = asmlibs/

SRC	 = main.c \
	   $(ASMLIBS)check_para_type.c

CFLAGS  = -Wall # -Wextra -Werror -ansi -pedantic $(INC)

OBJ	 = $(SRC:.c=.o)

all: $(NAME)

%.o: %.c
	gcc -c $(INC) $< $(CFLAGS) -o $@

$(NAME): $(OBJ)
	make -C libs/
	gcc  $(INC) $(CFLAGS) -o $(NAME) $(OBJ) -lmy -lncurses $(L_PATH)

clean:
	make clean -C libs/
	$(RM) $(OBJ)
	$(RM) *~

fclean: clean
	make fclean -C libs/
	$(RM) $(NAME)
	$(RM) *~

re:	fclean all

.PHONY:	all clean fclean re
